import Layout from '@/page/index/index.vue'
import { defineAsyncComponent } from 'vue'

export default [
  {
    path: '/',
    name: '主页',
    redirect: '/base/home'
  },
  {
    path: '/base',
    component: Layout,
    children:[
      {
        path: '/base/home',
        name: '首页',
        component: () => import('@/views/base/home/index.vue')
      },
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/page/login/index.vue')
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/page/error-page/404.vue')
  },
  {
    path: '/:pathMath(.*)',
    redirect: '/404',
  }
]
